set_property -dict { PACKAGE_PIN P17   IOSTANDARD LVCMOS33 } [get_ports { clk }]
create_clock -name clk -period 10 [get_ports { clk }]
set_property -dict { PACKAGE_PIN R11    IOSTANDARD LVCMOS33 } [get_ports { rst }]

## UART 
set_property -dict { PACKAGE_PIN N5    IOSTANDARD LVCMOS33 } [get_ports { rx }]
set_property -dict { PACKAGE_PIN T4    IOSTANDARD LVCMOS33 } [get_ports { tx }]

## switch
#set_property -dict { PACKAGE_PIN T5    IOSTANDARD LVCMOS33 } [get_ports { switch[0] }]
#set_property -dict { PACKAGE_PIN T3    IOSTANDARD LVCMOS33 } [get_ports { switch[1] }]
#set_property -dict { PACKAGE_PIN R3    IOSTANDARD LVCMOS33 } [get_ports { switch[2] }]
#set_property -dict { PACKAGE_PIN V4    IOSTANDARD LVCMOS33 } [get_ports { switch[3] }]
#set_property -dict { PACKAGE_PIN V5    IOSTANDARD LVCMOS33 } [get_ports { switch[4] }]
#set_property -dict { PACKAGE_PIN V2    IOSTANDARD LVCMOS33 } [get_ports { switch[5] }]
#set_property -dict { PACKAGE_PIN U2    IOSTANDARD LVCMOS33 } [get_ports { switch[6] }]
#set_property -dict { PACKAGE_PIN U3    IOSTANDARD LVCMOS33 } [get_ports { switch[7] }]
#set_property -dict { PACKAGE_PIN R1    IOSTANDARD LVCMOS33 } [get_ports { switch[8] }]
#set_property -dict { PACKAGE_PIN N4    IOSTANDARD LVCMOS33 } [get_ports { switch[9] }]
#set_property -dict { PACKAGE_PIN M4    IOSTANDARD LVCMOS33 } [get_ports { switch[10] }]
#set_property -dict { PACKAGE_PIN R2    IOSTANDARD LVCMOS33 } [get_ports { switch[11] }]
#set_property -dict { PACKAGE_PIN P2    IOSTANDARD LVCMOS33 } [get_ports { switch[12] }]
#set_property -dict { PACKAGE_PIN P3    IOSTANDARD LVCMOS33 } [get_ports { switch[13] }]
#set_property -dict { PACKAGE_PIN P4    IOSTANDARD LVCMOS33 } [get_ports { switch[14] }]
#set_property -dict { PACKAGE_PIN P5    IOSTANDARD LVCMOS33 } [get_ports { switch[15] }]


## button
#set_property -dict { PACKAGE_PIN R11    IOSTANDARD LVCMOS33 } [get_ports { button[0] }]
#set_property -dict { PACKAGE_PIN R15    IOSTANDARD LVCMOS33 } [get_ports { button[1] }]
#set_property -dict { PACKAGE_PIN R17    IOSTANDARD LVCMOS33 } [get_ports { button[2] }]
#set_property -dict { PACKAGE_PIN V1    IOSTANDARD LVCMOS33 } [get_ports { button[3] }]
#set_property -dict { PACKAGE_PIN U4    IOSTANDARD LVCMOS33 } [get_ports { button[4] }]

## led
set_property -dict { PACKAGE_PIN K3   IOSTANDARD LVCMOS33 } [get_ports { led[0] }]
set_property -dict { PACKAGE_PIN M1   IOSTANDARD LVCMOS33 } [get_ports { led[1] }]
set_property -dict { PACKAGE_PIN L1   IOSTANDARD LVCMOS33 } [get_ports { led[2] }]
set_property -dict { PACKAGE_PIN K6   IOSTANDARD LVCMOS33 } [get_ports { led[3] }]
set_property -dict { PACKAGE_PIN J5   IOSTANDARD LVCMOS33 } [get_ports { led[4] }]
set_property -dict { PACKAGE_PIN H5   IOSTANDARD LVCMOS33 } [get_ports { led[5] }]
set_property -dict { PACKAGE_PIN H6   IOSTANDARD LVCMOS33 } [get_ports { led[6] }]
set_property -dict { PACKAGE_PIN K1   IOSTANDARD LVCMOS33 } [get_ports { led[7] }]
set_property -dict { PACKAGE_PIN K2   IOSTANDARD LVCMOS33 } [get_ports { led[8] }]
set_property -dict { PACKAGE_PIN J2   IOSTANDARD LVCMOS33 } [get_ports { led[9] }]
set_property -dict { PACKAGE_PIN J3   IOSTANDARD LVCMOS33 } [get_ports { led[10] }]
set_property -dict { PACKAGE_PIN H4   IOSTANDARD LVCMOS33 } [get_ports { led[11] }]
set_property -dict { PACKAGE_PIN J4   IOSTANDARD LVCMOS33 } [get_ports { led[12] }]
set_property -dict { PACKAGE_PIN G3   IOSTANDARD LVCMOS33 } [get_ports { led[13] }]
set_property -dict { PACKAGE_PIN G4   IOSTANDARD LVCMOS33 } [get_ports { led[14] }]
set_property -dict { PACKAGE_PIN F6   IOSTANDARD LVCMOS33 } [get_ports { led[15] }]


## seg
set_property -dict { PACKAGE_PIN B4   IOSTANDARD LVCMOS33 } [get_ports { led0_seg[7] }]
set_property -dict { PACKAGE_PIN A4   IOSTANDARD LVCMOS33 } [get_ports { led0_seg[6] }]
set_property -dict { PACKAGE_PIN A3   IOSTANDARD LVCMOS33 } [get_ports { led0_seg[5] }]
set_property -dict { PACKAGE_PIN B1   IOSTANDARD LVCMOS33 } [get_ports { led0_seg[4] }]
set_property -dict { PACKAGE_PIN A1   IOSTANDARD LVCMOS33 } [get_ports { led0_seg[3] }]
set_property -dict { PACKAGE_PIN B3   IOSTANDARD LVCMOS33 } [get_ports { led0_seg[2] }]
set_property -dict { PACKAGE_PIN B2   IOSTANDARD LVCMOS33 } [get_ports { led0_seg[1] }]
set_property -dict { PACKAGE_PIN D5   IOSTANDARD LVCMOS33 } [get_ports { led0_seg[0] }]
set_property -dict { PACKAGE_PIN D4   IOSTANDARD LVCMOS33 } [get_ports { led1_seg[7] }]
set_property -dict { PACKAGE_PIN E3   IOSTANDARD LVCMOS33 } [get_ports { led1_seg[6] }]
set_property -dict { PACKAGE_PIN D3   IOSTANDARD LVCMOS33 } [get_ports { led1_seg[5] }]
set_property -dict { PACKAGE_PIN F4   IOSTANDARD LVCMOS33 } [get_ports { led1_seg[4] }]
set_property -dict { PACKAGE_PIN F3   IOSTANDARD LVCMOS33 } [get_ports { led1_seg[3] }]
set_property -dict { PACKAGE_PIN E2   IOSTANDARD LVCMOS33 } [get_ports { led1_seg[2] }]
set_property -dict { PACKAGE_PIN D2   IOSTANDARD LVCMOS33 } [get_ports { led1_seg[1] }]
set_property -dict { PACKAGE_PIN H2   IOSTANDARD LVCMOS33 } [get_ports { led1_seg[0] }]
set_property -dict { PACKAGE_PIN G2   IOSTANDARD LVCMOS33 } [get_ports { led_bit[0] }]
set_property -dict { PACKAGE_PIN C2   IOSTANDARD LVCMOS33 } [get_ports { led_bit[1] }]
set_property -dict { PACKAGE_PIN C1   IOSTANDARD LVCMOS33 } [get_ports { led_bit[2] }]
set_property -dict { PACKAGE_PIN H1   IOSTANDARD LVCMOS33 } [get_ports { led_bit[3] }]
set_property -dict { PACKAGE_PIN G1   IOSTANDARD LVCMOS33 } [get_ports { led_bit[4] }]
set_property -dict { PACKAGE_PIN F1   IOSTANDARD LVCMOS33 } [get_ports { led_bit[5] }]
set_property -dict { PACKAGE_PIN E1   IOSTANDARD LVCMOS33 } [get_ports { led_bit[6] }]
set_property -dict { PACKAGE_PIN G6   IOSTANDARD LVCMOS33 } [get_ports { led_bit[7] }]


